<template>
	<view class="container">
		<uni-card>
			<view class="item" style="color: #252525;font-size: 16px;">{{item.title}}</view>
			<view class="item" style="color: #737373;" v-html="item.content"></view>
		</uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item: {}
			};
		},
		onLoad(item) {
			this.get('/prod-api/press/press/' + item.id, {

			}, 1).then(res => {
				let data = res.data
				data.content = data.content.replace(/<img src=\"/g, "<img width='100%' src=\"" + this.baseUrl)
				this.item = data
			})
		},
		onReady() {

		},
		onShow() {

		},
		methods: {

		}
	};
</script>

<style lang="scss">

</style>
